# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=mate-sensors-applet
pkgver=1.26.0
pkgrel=0
pkgdesc="Applet for the MATE Panel to display readings from hardware sensors"
url="https://github.com/mate-desktop/mate-sensors-applet"
arch="all"
license="GPL-2.0-or-later"
depends="perl-xml-parser"
makedepends="
	glib-dev
	gtk+3.0-dev
	intltool
	itstool
	libnotify-dev
	libxml2-utils
	libxslt-dev
	mandoc-dev
	mate-panel-dev
	"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://pub.mate-desktop.org/releases/${pkgver%.*}/mate-sensors-applet-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--sysconfdir=/etc \
		--enable-static=no \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
1419c63e823bcec5d8fc4a619b3eb6c1eef0ac5d923177fae6649664616824cb5a257121aa88ab5d56d1d5ff5c44f1d62a4dd325dc718091e2d2e16ae326fa36  mate-sensors-applet-1.26.0.tar.xz
"
